The inclusion of a humorous character or scene or witty dialogue in an otherwise serious work, often to relieve tension.